package com.hrsystem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("distributed_list")
public class DistributedList {

    private static final long serialVersionUID = 1L;

    @TableId(value = "distributed_id", type = IdType.AUTO)
    private Long distributedId;

    @TableId(value = "s_list_id")
    private Long sListId;

    @TableField("fOrg_id")
    private Long forgId;

    @TableField("sOrg_id")
    private Long sorgId;

    @TableField("tOrg_id")
    private Long torgId;

    @TableField("RegisterTime")
    private LocalDateTime RegisterTime;

    @TableField("Registrant")
    private String Registrant;

    @TableField("number")
    private int number;

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @TableField("TotalSalary")
    private BigDecimal totalsalary;
}
